package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author coderFu
 * @create 2021/11/5
 */
@ApiModel("文本内容校验接口")
@Data
@NoArgsConstructor
public class CheckContentDTO {

    @ApiModelProperty("文本内容")
    @NotBlank(message = "文本内容不能为空")
    private String content;

    public CheckContentDTO(String content) {
        this.content = content;
    }
}
